namespace Jumpton.SFA.Server.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [Map("DictionaryItems")]
    public class DictionaryItems : ObjectRow {
        
        public DictionaryItems() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public DictionaryItems(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        [Key("DictionaryItemID",true,true)]
        public decimal DictionaryItemID {
            get {
                return (System.Decimal)GetValue("DictionaryItemID");
            }
            set {
                SetValue("DictionaryItemID", value);
            }
        }
        
        [Field("DictionaryID")]
        public decimal DictionaryID {
            get {
                return (System.Decimal)GetValue("DictionaryID");
            }
            set {
                SetValue("DictionaryID", value);
            }
        }
        
        [Field("Name")]
        public string Name {
            get {
                return (System.String)GetValue("Name");
            }
            set {
                SetValue("Name", value);
            }
        }
        
        [Field("Active")]
        public bool Active {
            get {
                return (System.Boolean)GetValue("Active");
            }
            set {
                SetValue("Active", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public System.Decimal LAST_UPDATE_TIME {
            get {
                return (System.Decimal)GetValue("LAST_UPDATE_TIME");
            }
            set {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("Code")]
        public string Code
        {
            get
            {
                return (System.String)GetValue("Code");
            }
            set
            {
                SetValue("Code", value);
            }
        }

        [Field("Locked")]
        public Boolean Locked
        {
            get
            {
                return (Boolean)GetValue("Locked");
            }
            set
            {
                SetValue("Locked", value);
            }
        }
        
        [Field("DOMAIN_ID")]
        public decimal DOMAINID {
            get {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set {
                SetValue("DOMAINID", value);
            }
        }
    }
}
